package com.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.product.entity.AttrEntity;
import com.mall.product.entity.AttrGroupEntity;
import com.mall.product.vo.AttrGroupRelationVo;
import com.mall.product.vo.AttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author super
 * @email 3217985254@qq.com
 * @date 2023-07-16 17:13:15
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {
    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long menuId);

    AttrGroupEntity getAttrGroupById(Long attrGroupId);

    List<Long> getAttrGroupPath(List<Long> attrGroupPathList, Long catId);

    /**
     * 删除属性关联分组记录
     * @param attrGroupRelationVos
     */
    void deleteAttrRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    /**
     * 获取属性分组里面还没有关联的本分类里面的其他基本属性，方便添加新的关联
     * @param attrGroupId
     * @param params
     * @return
     */
    PageUtils getNoAttrList(Long attrGroupId, Map<String, Object> params);

    /**
     * 获取分类下所有分组&关联属性
     * @param catelogId
     * @return
     */
    public List<AttrGroupVo> getWithattrByCatelogId(Long catelogId);

}

